<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>sincd</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : April 1993</div>
    <p>
      <b>sincd</b> -  digital sinc function or Direchlet kernel</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>[s]=sincd(n,flag)  </tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>n</b>
        </tt>: integer</li>
      <li>
        <tt>
          <b>flag</b>
        </tt>: if <tt>
          <b>flag = 1</b>
        </tt> the function is centred around the origin; if <tt>
          <b>flag = 2</b>
        </tt> the function is delayed by <tt>
          <b>%pi/(2*n)</b>
        </tt>
      </li>
      <li>
        <tt>
          <b>s</b>
        </tt>: vector of values of the function on a dense grid of frequencies</li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
    function which calculates the function <tt>
        <b>Sin(N*x)/N*Sin(x)</b>
      </tt>
    </p>
    <h3>
      <font color="blue">Examples</font>
    </h3>
    <pre>

plot(sincd(10,1)) 
 
  </pre>
    <h3>
      <font color="blue">Author</font>
    </h3>
    <p>G. Le V.  </p>
  </body>
</html>
